package com.yang;

import java.util.Random;

public class Demo {
    public static void main(String[] args) {
        int min = 0;
        int max = 1;
        for (int i = 0; i < 10; i++) {
            Random random = new Random();
            int dorpRandom = random.nextInt(max - min + 1) + min;
            System.err.println(dorpRandom);
        }
    }
}
